
import java.util.Enumeration;
import java.util.Hashtable;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Portatil Siag
 */
public class main {

    public static void main(String[] args) {
        fillTheGap();
    }

    public static void fillTheGap() {
        PhotosCache pc = PhotosCache.getDefault();

        Photograph p1 = new Photograph(1, "a");
        Photograph p2 = new Photograph(2, "a");
        Photograph p3 = new Photograph(3, "a");
        Photograph p4 = new Photograph(4, "b");
        Photograph p5 = new Photograph(5, "b");
        Photograph p6 = new Photograph(6, "c");
        Photograph p7 = new Photograph(7, "d");
        Photograph p8 = new Photograph(8, "e");
        Photograph p9 = new Photograph(9, "e");
        Photograph p0 = new Photograph(0, "h");
        Photograph p01 = new Photograph(10, "");
        Photograph p02 = new Photograph(20, "");
        Photograph p03 = new Photograph(30, "");
        Photograph p04 = new Photograph(40, "");
        Photograph p05 = new Photograph(50, "");

        pc.put(p1);
        pc.put(p2);
        pc.put(p3);
        pc.put(p4);
        pc.put(p5);
        pc.put(p6);
        pc.put(p7);
        pc.put(p8);
        pc.put(p9);
        pc.put(p0);

        pc.put(p01);
        pc.put(p02);
        pc.put(p03);
        pc.put(p04);
        pc.put(p05);
    }

    public static void recover(String s) {
        Hashtable<Integer, Photograph> album = PhotosCache.getDefault().getPhotosByAlbum(s);
        Enumeration<Integer> index = album.keys();

        Integer i = 0;
        while (index.hasMoreElements()) {
            i = index.nextElement();
            Photograph p = album.get(i);
            System.out.println(p.get_album() + "#" + p.get_id());
        }
    }
}
